/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package mips;

/**
 *
 * @author smasher
 */
public class Nucleo implements Runnable{
    private int pc;
    private int[] registro;
    private Cache cacheDatos;
    private Cache cacheInstrucciones;
    
    public Nucleo(){
        registro = new int[32];
        cacheDatos = new Cache();
        cacheInstrucciones = new Cache();
    }
    private class Cache{
        public Palabra[][] cache;
    
        public Cache(){
            cache = new Palabra[4][4];
            for(int fila = 0; fila < 4; fila++){
                for(int columna = 0; columna < 4; columna++){
                   cache[fila][columna] = new Palabra();
                }
            }
        }
        
    }
	
    public void run(){
        System.out.println("Corriendo el nucleo");
        cacheDatos.cache[0][0].setByte(7, 5);
        
    }
	//rutina principal
    public static void main(String[] args){
        Nucleo n = new Nucleo();
        n.run();
        System.exit(0);
    }
}

